﻿@model prohomework.Models.showwork


@{
    ViewBag.Title = "showworkShow";
}

<table  class=".table-bordered" width="750" border="0" align="center" cellpadding="1" cellspacing="1" class="a2">
  <tr>
    <td height="35" class="a1" align="center">&nbsp;<span class="style2">@Model.zuoyemingchen</span></td>
  </tr>
  <tr>
  	<td height="30" class="a3" align="center">&nbsp;<span class="style4"><span class="style4">作者：</span>
		<span class="style5"> @Model.AuthorName</span>　
		<span class="style4">发布时间：</span>
		<span class="style5">@Model.buzhiriqi 　</span>
		<span class="style4">截止时间：</span>
		<span class="style5">@Model.jiezhiriqi</span>
		<span class="style4">课程：</span>
		<span class="style5">@Model.coursename</span>
	</td>
  </tr>
  <tr>
    <td valign="top" class="a3">&nbsp;
      <table width="100%"  border="0" cellspacing="20" cellpadding="0">
        <tr>
          <td><p></p>@Html.Raw(Model.zuoyeshuoming)<p></p></td>
        </tr>

          		                              <tr>
		                                <td align="center"> 

                                            @if( Model.filecontenttype.ToString()=="application/x-shockwave-flash")
                                            {

		                              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">
		                              <param name="movie" value="@Url.Action("showdetail", new {id=Model.id})">
		                              <param name="quality" value="high">
		                              <embed  quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed></object>
                                            }
                                            else if (Model.filecontenttype.ToString() == "image/gif" || Model.filecontenttype.ToString() == "image/pjpeg")
                                            {

                                    	 <img src="@Url.Action("showdetail","Teacher",new {id=Model.id })"/>
                                             
                                            }
                                            
                                            
                                            

			                             </td>
		                              </tr>
      </table>


    </td>
  </tr>
  <tr>
    <td valign="top" class="a3"><div align="center">
        <input type=button value="　关闭　" onClick="javascript:self.close();">
    &nbsp;</div></td>
  </tr>
</table>
@*		  	                           else
                                       {
                                       //  <img src="@Url.Action("showdetail", new {id=ViewData["id"] })"/>       
		                                 <a href="@Url.Action("download", new {id=Model.id })">下载文件： @Model.fileName</a>
                                            }*@